using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN SinhVienService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: SinhVienService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class SinhVienService : ISinhVienService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: SinhVien_ID</para>
		/// <para>Output: SinhVienEntity</para>
		///</summary>
		public SinhVienEntity SelectOne(int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectOne(SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaSinhVien</para>
		/// <para>Input: MaSinhVien</para>
		/// <para>Output: SinhVienEntity</para>
		///</summary>
		public SinhVienEntity SelectOneByMaSinhVien(string MaSinhVien){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectOneByMaSinhVien(MaSinhVien);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of SinhVienEntity</para>
		///</summary>
		public List<SinhVienEntity> SelectAll(){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of SinhVienEntity</para>
		///</summary>
		public List<SinhVienEntity> SelectAllFilter(string strFilter){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: SinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(SinhVienEntity o){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: SinhVienEntity</para>
		/// <para>Output: SinhVienEntity</para>
		///</summary>
		public SinhVienEntity SaveRet(SinhVienEntity o){
			SinhVienDAO dao = new SinhVienDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of SinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<SinhVienEntity> list){
			SinhVienDAO dao = new SinhVienDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of SinhVienEntity</para>
		/// <para>Output: List of SinhVienEntity</para>
		///</summary>
		public List<SinhVienEntity> SaveListRet(List<SinhVienEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: SinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(SinhVienEntity o){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of SinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<SinhVienEntity> list){
			SinhVienDAO dao = new SinhVienDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaSinhVien</para>
		/// <para>Input: NewMaSinhVien,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaSinhVien(string NewMaSinhVien,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateMaSinhVien(NewMaSinhVien,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenSinhVien</para>
		/// <para>Input: NewTenSinhVien,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenSinhVien(string NewTenSinhVien,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateTenSinhVien(NewTenSinhVien,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDiaChi</para>
		/// <para>Input: NewDiaChi,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDiaChi(string NewDiaChi,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateDiaChi(NewDiaChi,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateEmail</para>
		/// <para>Input: NewEmail,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateEmail(string NewEmail,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateEmail(NewEmail,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateSoCMND</para>
		/// <para>Input: NewSoCMND,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSoCMND(string NewSoCMND,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateSoCMND(NewSoCMND,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateDienThoai</para>
		/// <para>Input: NewDienThoai,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDienThoai(string NewDienThoai,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateDienThoai(NewDienThoai,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateGhiChu(NewGhiChu,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGioiTinh</para>
		/// <para>Input: NewGioiTinh,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGioiTinh(Byte NewGioiTinh,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateGioiTinh(NewGioiTinh,SinhVien_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgaySinh</para>
		/// <para>Input: NewNgaySinh,SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgaySinh(string NewNgaySinh,int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.UpdateNgaySinh(NewNgaySinh,SinhVien_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: SinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(SinhVienEntity o){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: SinhVien_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int SinhVien_ID){
			SinhVienDAO dao = new SinhVienDAO();
			return dao.DeleteByID(SinhVien_ID);
		}
		#endregion

		#region Select,delete by SinhVien_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END SinhVienWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

